package com.wly.jmockito.service.impl;

import com.wly.jmockito.dao.StudentDao;
import com.wly.jmockito.domain.Student;
import com.wly.jmockito.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 * Copyright: Copyright (c) 2024
 * Create Time: 2024-11-08 15:15
 *
 * @author wanglianyun
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentDao studentDao;

    public Student getStudentById(int id) {
        ////一般service调dao层接口之后会进行数据处理，处理完之后再还回
        return studentDao.getStudentById(id);
    }
}
